package com.bookmanager.www.mapper;

import com.bookmanager.www.entity.FlPayinfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

/**
 * <p>
 * 用户支付信息表 Mapper 接口
 * </p>
 *
 * @author 风离
 * @since 2021-09-17
 */
public interface FlPayinfoMapper extends BaseMapper<FlPayinfo> {

    /**
     * 根据用户支付id查询支付信息
     * @param payId
     * @return
     */
    FlPayinfo selectFlPayInfoByPayId(@Param("pay_id") String payId);

    /**
     * 创建用户支付信息表
     * @param payId
     * @param orderId
     * @param userId
     * @param payPlatform
     * @param platformNumber
     * @param platformStatus
     * @param createdTime
     * @param upDateTime
     * @return
     */
    int createPayInfo(@Param("pay_id")String payId,@Param("order_id") String orderId,@Param("user_id") String userId,
                      @Param("pay_platform")int payPlatform,@Param("platformNumber") String platformNumber, @Param("platformStatus")String platformStatus,
                      @Param("createdTime")LocalDateTime createdTime,@Param("upDateTime")LocalDateTime upDateTime);
}
